<form role="form" id="aa">
	<input type="hidden" id="modelId" name="id" data-th-value="{model.id}" />
	
	<div class="form-group">
		<label for="text_parent" >上级部门</label>
		<input id="name" class="form-control combotree" type="text" name="paretId" data-th-value="${model.parent==null?'':model.parent.id}" data:url="|dept/combotree?id=${model.id==null?'':model.id}|" placeholder="请选择上级部门" />
	</div>
	<div class="form-group">
		<label for="txt_name">部门管理</label>
		<input type="text" required="required" name="name" data-th-value=${model.name} class="form-control" id="name2" placeholder="请输入部门名称" />
	</div>
</form>
<script type="text/javascript">
	$('name2').bootstrapValidator({
		feedbackIcons:{
			valid:'fa fa-check',
			invalid:'fa fa-remove',
			validating:'fa fa-refresh'
		},
		fields:{
			name:{
				validators:{
					notEmpty:{
						message:'部门名称不能为空'
					}
				}
			}
		}
	})
</script>